package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbSysEvent;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbSysEvent is a Querydsl query type for ETbSysEvent
 */
@Label("系统事件表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbSysEvent extends RelationalPathBase<ETbSysEvent> {

    private static final long serialVersionUID = -497349180;

    public static final QTbSysEvent tbSysEvent = new QTbSysEvent("tb_sys_event");

    public class PrimaryKeys {

        public final PrimaryKey<ETbSysEvent> primary = createPrimaryKey(id);

    }

    public final NumberPath<Integer> alreadyRead = createNumber("alreadyRead", Integer.class);

    public final StringPath comments = createString("comments");

    public final DateTimePath<org.joda.time.DateTime> endTime = createDateTime("endTime", org.joda.time.DateTime.class);

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final DateTimePath<org.joda.time.DateTime> startTime = createDateTime("startTime", org.joda.time.DateTime.class);

    public final PrimaryKeys pk = new PrimaryKeys();

    public QTbSysEvent(String variable) {
        super(ETbSysEvent.class, forVariable(variable), "null", "tb_sys_event");
        addMetadata();
    }

    public QTbSysEvent(String variable, String schema, String table) {
        super(ETbSysEvent.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbSysEvent(Path<? extends ETbSysEvent> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_sys_event");
        addMetadata();
    }

    public QTbSysEvent(PathMetadata<?> metadata) {
        super(ETbSysEvent.class, metadata, "null", "tb_sys_event");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(alreadyRead, ColumnMetadata.named("alreadyRead").withIndex(4).ofType(Types.INTEGER).withSize(10));
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(5).ofType(Types.VARCHAR).withSize(256));
        addMetadata(endTime, ColumnMetadata.named("endTime").withIndex(3).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(6).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(startTime, ColumnMetadata.named("startTime").withIndex(2).ofType(Types.TIMESTAMP).withSize(19));
    }

}

